import Vue from 'vue'
import VueRouter from 'vue-router'
import box from '@/components/box.vue'
import app from '@/App.vue';
import childbox from '@/components/childbox.vue'
import moren from '@/components/moren.vue'
// Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '/',
      component: moren,
      children: [
        {
          path: 'childbox',
          component: childbox,
          children: [
            {
              path: 'box',
              component: box,
            }

          ]
        },
      ],
      // 路由重定向
      // redirect: 'childbox'
    },
    {
      path: '/box',
      component: box
    },

  ]
})
